package entity

import "time"

type Product struct {
	ID            int       `gorm:"column:id;PRIMARY_KEY"`
	CategoryId    int       `gorm:"column:category_id"`
	BagCategoryId int       `gorm:"column:bag_category_id"`
	Name          string    `gorm:"column:name"`
	Remark        string    `gorm:"column:remark"`
	Url           string    `gorm:"column:url"`
	Price         float64   `gorm:"column:price"`
	HomeShow      int       `gorm:"column:home_show"`
	Sort          int       `gorm:"column:sort"`
	State         int       `gorm:"column:state"`
	CreatedAt     time.Time `gorm:"column:created_at"`
	UpdatedAt     time.Time `gorm:"column:updated_at"`
}

func (Product) TableName() string {
	return "l_product"
}
